import { createApp } from 'vue'
import { createStore } from 'vuex'

const store = createStore({
  state() {
    return {
      countA: 0,
      countB: 100
    }
  },
  mutations: {
    incrementA(state) {
      state.countA++
    },
    decrementB(state) {
      state.countB--
    }
  }
})

export default store
